package com.beta.resource.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.beta.resource.model.UserFile;

@Mapper
@Repository
public interface CodeFileMapper {
    public int createTable();
    public List<UserFile> getCodeFiles(@Param("uid") int uid, @Param("cid") int cid, @Param("offset") int offset, @Param("count") int count);
    public UserFile getFileInfo(@Param("id") int id, @Param("uid")int uid);
    public int saveFile(UserFile file);
    public int updateFile(UserFile file);
    public Integer getFoundRows();
}
